package com.tpay.server.domain;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="MA_APP")
public class App {
	@Id
	@Column(name="APP_ID", length=2)	// 급여-HR 타임넷-TM 회계-FI
	private String id;
	
	@Column(name="APP_NAME", length=20, nullable=false)
	private String name;

	@OneToMany(mappedBy="app")
	private Set<CgroupApp> cgroupApps;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<CgroupApp> getCgroupApps() {
		return cgroupApps;
	}

	public void setCgroupApps(Set<CgroupApp> cgroupApps) {
		this.cgroupApps = cgroupApps;
	}

}
